package com.wwlwxg.logback;

import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.status.StatusManager;
import ch.qos.logback.core.util.StatusPrinter;
import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.MDC;

public class Test1 {
	public static void main(String[] args) {
		Logger logger = LoggerFactory.getLogger("chapters.introduction.HelloWorld2");
		logger.debug("Hello world.");

		MDC.put("firstname", "nihaoya");

		// print internal state
		LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
//		StatusPrinter.print(lc);
		System.out.println("---------");
		logger.info("..");



	}
}
